home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: news3.noc.netcom.net!zdc!zippo!usenet
- From: Jim McFarland <jgm6@orkand.em.cdc.gov>
- Subject: Re: Request Help with Borland C++ 4.0
- Content-Type: text/plain; charset=us-ascii
- Sender: usenet@news.zippo.com
- Content-Transfer-Encoding: 7bit
- Nntp-Posting-Host: 158.111.166.77
- Organization: The Orkand Corporation
- Message-ID: <DLDqw0.1CF@news.zippo.com>
- References: <Pine.BSD/.3.91.960112094150.10777A-100000@daffy.bgcc.com>
- X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
- Mime-Version: 1.0
- Date: Thu, 18 Jan 1996 13:59:59 GMT
-
- "Donald C. Bennett, Jr" <bennett@bgcc.com> wrote:
- >Help!!
- >
- >When I build my project files I receive the following linker
- >error:
- >
- >Linking stream.exe:
- >Linker Warning: No module definition file specified: using defaults
- >Linker Error: Undefined symbol OwlMain(int,charfar*far*) in library file
- >F:\BC4\LIB\owlwi.lib in module winmain
- >
- >I am not concerned with the warning but I cannot solve the error
- >problem. Drive F: is the CDROM so I could not have currupted the file.
- This error does not mean that the file it mentions is corrupted, it menas
- that the file calls a function that does not exist. In this case it is
- OwlMain() which you must supply (I don't use OWL, but I use other
- frameworks and am making an educated guess) in your own code.
-
- >
- >If I build this exe as a project I receive the same error referring to an
- >undefined WinMain. Please help.
-
- Yes, this is the same basic problem. Windows programs need a WinMain().
- When using a framework such as OwlMain() you don't supply WinMain, the
- framework does - instead you will have to supply the framework defined
- main function. If you have a main() function in your program, then you
- need to rename it to the appropriate name, depending on the framework you
- are using. My advice is to use your manuals and on-line help. You could
- have figured this out by searching on "OwlMain" or "WinMain" in the
- on-line help.
-
- Jim
-
-
-
-